//
//  ScenicNodeCCell.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/12/28.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "ScenicNodeCCell.h"

@interface ScenicNodeCCell ()

@property (weak, nonatomic) IBOutlet UIImageView *ScenicImageView;

@property (weak, nonatomic) IBOutlet UILabel *scenicNameLabel;

@property (weak, nonatomic) IBOutlet UIView *mengbanView;

@end

@implementation ScenicNodeCCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.mengbanView.backgroundColor = kMengBanColor;
}


- (void)configDataWith:(Scenic *)scenic {
    
    [self.ScenicImageView setImageURL:[NSURL URLWithString:scenic.pictureArray.firstObject] placeholderImage:[UIImage imageNamed:@"placeholder_squ"]];
    
    self.scenicNameLabel.text = scenic.viewname;
}
@end
